package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class User {
    private Long id;    //id

    private String email;   //邮箱,登录账号

    private String nickName;       //昵称

    private String password;    //密码

    private String place;   //地址

    private String headImgUrl;  //头像

    private Integer gender = 2; //性别 : 0.男  1.女  2.保密

    private String coverImgUrl;     //背景墙

    private String sign;    //个性签名

    public String getGenderDisplay(){
        if (gender == 0){
            return "男";
        }else if (gender == 1){
            return "女";
        }else {
            return "保密";
        }
    }
}